<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="./style.css">
    </head>
    <body>
        <button id="mybtn" onclick="alertMe()">
            <table class="my-table">
                <thead>
                    <th>姓名</th>
                    <th>成绩</th>
                </thead>
                <tbody>
                    <tr>
                        <td>张三</td>
                        <td>70</td>
                    </tr>
                    <tr>
                        <td>李四</td>
                        <td>80</td>
                    </tr>
                    <tr>
                        <td>王五</td>
                        <td>90</td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="2">总成绩:240</td>
                    </tr>
                </tfoot>
            </table>
        </button>
        <script src="./script.js"></script>
    </body>
</html>